<template>
	<view class="content">
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	import { mapState, mapMutations, mapGetters } from 'vuex';
	export default {
		data() {
			return {
				src:'',
				
			}
		},
		components: {
		},
		onLoad(o) {
			console.log(o);
			if (o.src) {
				this.src = o.src;
				return
			};
			if(o.kf){
				let name = this.userInfo?.nickname || '';
				let uid = this.userInfo?.uid || '';
				let headimg = this.userInfo?.headimg || '';
				let path = `https://kefu.jiumeifu.top/index/index/home?visiter_id=${uid}&visiter_name=${name}&avatar=${headimg}&business_id=1&groupid=0&special=2`
				this.src = path;
				return
			};
			this.src = this.userInfo.apploadurl;
		},
		onShareAppMessage() {
		},
		watch:{
		},
		computed: {
			...mapState({
				userInfo: 'userInfo',
			})
		},
		methods: {	
			
			...mapMutations(['setUserInfo'])
		}
	}
		
</script>

<style lang="scss">
</style>